/**
 * 深色主题样式
 * 用于连板天梯页面
 */

/* 深色主题基础样式 */
body.dark-theme {
    background: #1a1a1a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dark-theme .app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.dark-theme .header {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #404040;
}

.dark-theme .header h1 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dark-theme .header p {
    color: #b0b0b0;
    font-size: 14px;
}

/* 主要内容区域 */
.dark-theme .main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

/* 左侧连板天梯 */
.dark-theme .ladder-section {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #404040;
    height: fit-content;
}

.dark-theme .ladder-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-theme .ladder-subtitle {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #404040;
}

.dark-theme .ladder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #3a3a3a;
    border-radius: 8px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dark-theme .ladder-item:hover {
    background: #4a4a4a;
    border-color: #5a5a5a;
}

.dark-theme .ladder-item.active {
    background: #3498db;
    border-color: #3498db;
}

.dark-theme .ladder-days {
    font-size: 16px;
    font-weight: 700;
    color: #ff6b6b;
}

.dark-theme .ladder-item.active .ladder-days {
    color: #ffffff;
}

.dark-theme .ladder-stock {
    font-size: 14px;
    color: #ffffff;
    text-align: right;
}

.dark-theme .ladder-item.active .ladder-stock {
    color: #ffffff;
}

/* 右侧异动列表 */
.dark-theme .anomaly-section {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #404040;
}

.dark-theme .anomaly-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 标签页 */
.dark-theme .tab-container {
    margin-bottom: 20px;
}

.dark-theme .tab-buttons {
    display: flex;
    gap: 4px;
    background: #3a3a3a;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #404040;
}

.dark-theme .tab-button {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .tab-button.active {
    background: #3498db;
    color: #ffffff;
}

.dark-theme .tab-button:hover:not(.active) {
    background: #4a4a4a;
    color: #ffffff;
}

/* 数据表格 */
.dark-theme .data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.dark-theme .data-table th {
    background: #3a3a3a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #404040;
    text-transform: uppercase;
}

.dark-theme .data-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #404040;
    font-size: 13px;
    color: #ffffff;
}

.dark-theme .data-table tr:hover {
    background: #3a3a3a;
}

/* 股票代码和名称 */
.dark-theme .stock-code {
    font-weight: 700;
    color: #3498db;
}

.dark-theme .stock-name {
    color: #b0b0b0;
    font-size: 12px;
    margin-top: 2px;
}

/* 涨幅 */
.dark-theme .gain-percent {
    color: #ff6b6b;
    font-weight: 700;
}

/* 现价 */
.dark-theme .current-price {
    color: #ff6b6b;
    font-weight: 700;
}

/* 涨停原因 */
.dark-theme .limit-up-reason {
    color: #b0b0b0;
    font-size: 12px;
    max-width: 200px;
    line-height: 1.4;
}

/* 涨停时间 */
.dark-theme .limit-up-time {
    color: #3498db;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* 涨停状态 */
.dark-theme .limit-up-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.dark-theme .status-first {
    background: #e74c3c;
    color: #ffffff;
}

.dark-theme .status-consecutive {
    background: #f39c12;
    color: #ffffff;
}

/* 流通市值 */
.dark-theme .market-cap {
    color: #b0b0b0;
    font-size: 12px;
}

/* 筛选栏 */
.dark-theme .filters-bar {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #404040;
}

.dark-theme .filter-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.dark-theme .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dark-theme .filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
}

.dark-theme .filter-input, 
.dark-theme .filter-select {
    padding: 8px 12px;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 14px;
    background: #3a3a3a;
    color: #ffffff;
    min-width: 120px;
}

.dark-theme .filter-input:focus, 
.dark-theme .filter-select:focus {
    outline: none;
    border-color: #3498db;
}

.dark-theme .filter-btn {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-theme .filter-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.dark-theme .filter-btn.secondary {
    background: #6c757d;
}

.dark-theme .filter-btn.secondary:hover {
    background: #5a6268;
}

/* 统计摘要 */
.dark-theme .summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.dark-theme .summary-card {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #404040;
}

.dark-theme .summary-value {
    font-size: 28px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 8px;
}

.dark-theme .summary-label {
    font-size: 14px;
    color: #b0b0b0;
    text-transform: uppercase;
    font-weight: 600;
}

/* 加载和错误状态 */
.dark-theme .loading, 
.dark-theme .no-data, 
.dark-theme .error {
    text-align: center;
    padding: 40px;
    color: #b0b0b0;
}

.dark-theme .error {
    color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .dark-theme .main-content {
        grid-template-columns: 1fr;
    }
    
    .dark-theme .ladder-section {
        order: 2;
    }
    
    .dark-theme .anomaly-section {
        order: 1;
    }
}

@media (max-width: 768px) {
    .dark-theme .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dark-theme .filter-group {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .dark-theme .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .dark-theme .tab-buttons {
        flex-wrap: wrap;
    }
    
    .dark-theme .tab-button {
        flex: 1 1 calc(50% - 4px);
    }
}
